/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Default_Frame.java
 *
 * Created on Oct 2, 2014, 6:06:34 PM
 */

package com.JD.master.frame;

import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 *
 * @author admin
 */
public class Master_Default_Frame extends javax.swing.JFrame {

    /** Creates new form Default_Frame */
    String path=System.getProperty("user.dir");

    public Master_Default_Frame() {
        initComponents();

         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(defautPane_Fetchable);
        DefautFinal_Panel.repaint();

       // DefautFinal_Panel  defautPane_Fetchable
    }

    AddNewMachine addNewMachine=new AddNewMachine();
    AddNewDriver addNewDriver=new AddNewDriver();
    AddNewProduct addNewProduct=new AddNewProduct();
    AddNewParty addNewParty=new AddNewParty();

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        defaultPanelFromMaster_Default_FrameClass = new javax.swing.JPanel();
        ToolPanel = new javax.swing.JPanel();
        addMachineButtonFromToolPanel = new javax.swing.JButton();
        addDriverButtonFromToolPanel = new javax.swing.JButton();
        addProductButtonFromToolPanel = new javax.swing.JButton();
        addPartyButtonFromToolPanel = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        BackButton = new javax.swing.JButton();
        DefautFinal_Panel = new javax.swing.JPanel();
        defautPane_Fetchable = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        defaultPanelFromMaster_Default_FrameClass.setBackground(new java.awt.Color(255, 102, 102));

        ToolPanel.setBackground(new java.awt.Color(102, 102, 255));
        ToolPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, java.awt.Color.lightGray));

        addMachineButtonFromToolPanel.setBackground(new java.awt.Color(204, 204, 204));
        addMachineButtonFromToolPanel.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
        addMachineButtonFromToolPanel.setText(" New Machine Detail");
        addMachineButtonFromToolPanel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                addMachineButtonFromToolPanelMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                addMachineButtonFromToolPanelMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                addMachineButtonFromToolPanelMouseExited(evt);
            }
        });
        addMachineButtonFromToolPanel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addMachineButtonFromToolPanelActionPerformed(evt);
            }
        });
        addMachineButtonFromToolPanel.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                addMachineButtonFromToolPanelKeyPressed(evt);
            }
        });

        addDriverButtonFromToolPanel.setBackground(new java.awt.Color(204, 204, 204));
        addDriverButtonFromToolPanel.setFont(new java.awt.Font("Verdana", 0, 12));
        addDriverButtonFromToolPanel.setText(" New Driver Detail");
        addDriverButtonFromToolPanel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addDriverButtonFromToolPanelActionPerformed(evt);
            }
        });

        addProductButtonFromToolPanel.setBackground(new java.awt.Color(204, 204, 204));
        addProductButtonFromToolPanel.setFont(new java.awt.Font("Verdana", 0, 12));
        addProductButtonFromToolPanel.setText("New Product Detail");
        addProductButtonFromToolPanel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addProductButtonFromToolPanelActionPerformed(evt);
            }
        });

        addPartyButtonFromToolPanel.setBackground(new java.awt.Color(204, 204, 204));
        addPartyButtonFromToolPanel.setFont(new java.awt.Font("Verdana", 0, 12));
        addPartyButtonFromToolPanel.setText(" New Party Detail");
        addPartyButtonFromToolPanel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addPartyButtonFromToolPanelActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel1.setForeground(java.awt.Color.white);
        jLabel1.setText("MASTER");

        jLabel2.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel2.setForeground(java.awt.Color.white);
        jLabel2.setText("ACTION");

        jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/statonary2.gif"))); // NOI18N

        BackButton.setBackground(new java.awt.Color(204, 204, 204));
        BackButton.setFont(new java.awt.Font("Verdana", 0, 12));
        BackButton.setText("Back To Home");
        BackButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout ToolPanelLayout = new javax.swing.GroupLayout(ToolPanel);
        ToolPanel.setLayout(ToolPanelLayout);
        ToolPanelLayout.setHorizontalGroup(
            ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ToolPanelLayout.createSequentialGroup()
                .addGroup(ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addComponent(jLabel8))
                    .addGroup(ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(addPartyButtonFromToolPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(addProductButtonFromToolPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(addDriverButtonFromToolPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(addMachineButtonFromToolPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(BackButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel2)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        ToolPanelLayout.setVerticalGroup(
            ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ToolPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(43, 43, 43)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(addMachineButtonFromToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(52, 52, 52)
                .addComponent(addDriverButtonFromToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(48, 48, 48)
                .addComponent(addProductButtonFromToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(47, 47, 47)
                .addComponent(addPartyButtonFromToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(47, 47, 47)
                .addComponent(BackButton, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(721, 721, 721)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout DefautFinal_PanelLayout = new javax.swing.GroupLayout(DefautFinal_Panel);
        DefautFinal_Panel.setLayout(DefautFinal_PanelLayout);
        DefautFinal_PanelLayout.setHorizontalGroup(
            DefautFinal_PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        DefautFinal_PanelLayout.setVerticalGroup(
            DefautFinal_PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 809, Short.MAX_VALUE)
        );

        defautPane_Fetchable.setBackground(new java.awt.Color(255, 102, 51));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/statonary2.gif"))); // NOI18N

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/100 (4).png"))); // NOI18N
        jLabel4.setToolTipText("Add New Driver Details");
        jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel4MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel4MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel4MouseExited(evt);
            }
        });

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/100 (1).png"))); // NOI18N
        jLabel5.setToolTipText("Add New Party Details");
        jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel5MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel5MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel5MouseExited(evt);
            }
        });

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/100 (3).png"))); // NOI18N
        jLabel6.setToolTipText("Add New Product Details");
        jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel6MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel6MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel6MouseExited(evt);
            }
        });

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/100 (2).png"))); // NOI18N
        jLabel7.setToolTipText("Add New Machine Details");
        jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel7MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel7MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel7MouseExited(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
        jLabel9.setForeground(java.awt.SystemColor.inactiveCaption);
        jLabel9.setText("DRIVER DETAILS");

        jLabel10.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
        jLabel10.setForeground(java.awt.SystemColor.inactiveCaption);
        jLabel10.setText("PARTY DETAILS");

        jLabel11.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
        jLabel11.setForeground(java.awt.SystemColor.inactiveCaption);
        jLabel11.setText("PRODUCT DETAILS");

        jLabel12.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
        jLabel12.setForeground(java.awt.SystemColor.inactiveCaption);
        jLabel12.setText("MACHINE DETAILS");

        javax.swing.GroupLayout defautPane_FetchableLayout = new javax.swing.GroupLayout(defautPane_Fetchable);
        defautPane_Fetchable.setLayout(defautPane_FetchableLayout);
        defautPane_FetchableLayout.setHorizontalGroup(
            defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGap(63, 63, 63)
                .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                        .addGap(105, 105, 105)
                        .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(69, 69, 69))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, defautPane_FetchableLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel10)
                        .addGap(87, 87, 87)))
                .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel11)
                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 76, Short.MAX_VALUE)
                .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel12)
                    .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(72, 72, 72))
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGap(446, 446, 446)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(363, Short.MAX_VALUE))
        );
        defautPane_FetchableLayout.setVerticalGroup(
            defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                        .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel12))
                    .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(70, 70, 70)
                        .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                                    .addGap(12, 12, 12)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel9))
                                .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                                    .addGap(1, 1, 1)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jLabel10)))
                            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel11)))))
                .addContainerGap(501, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout defaultPanelFromMaster_Default_FrameClassLayout = new javax.swing.GroupLayout(defaultPanelFromMaster_Default_FrameClass);
        defaultPanelFromMaster_Default_FrameClass.setLayout(defaultPanelFromMaster_Default_FrameClassLayout);
        defaultPanelFromMaster_Default_FrameClassLayout.setHorizontalGroup(
            defaultPanelFromMaster_Default_FrameClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, defaultPanelFromMaster_Default_FrameClassLayout.createSequentialGroup()
                .addComponent(DefautFinal_Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(defautPane_Fetchable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        defaultPanelFromMaster_Default_FrameClassLayout.setVerticalGroup(
            defaultPanelFromMaster_Default_FrameClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(ToolPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 809, Short.MAX_VALUE)
            .addComponent(DefautFinal_Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(defaultPanelFromMaster_Default_FrameClassLayout.createSequentialGroup()
                .addComponent(defautPane_Fetchable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        getContentPane().add(defaultPanelFromMaster_Default_FrameClass, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1240, 660));

        pack();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Dimension dialogSize = getSize();
        setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);
    }// </editor-fold>//GEN-END:initComponents

    private void addMachineButtonFromToolPanelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addMachineButtonFromToolPanelActionPerformed
        // TODO add your handling code here:

        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewMachine.getAddNewMachine_Panel());
        DefautFinal_Panel.repaint();
        

    }//GEN-LAST:event_addMachineButtonFromToolPanelActionPerformed

    private void addDriverButtonFromToolPanelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addDriverButtonFromToolPanelActionPerformed
        // TODO add your handling code here:

        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewDriver.getAddNewDriver_Panel());
        DefautFinal_Panel.repaint();

    }//GEN-LAST:event_addDriverButtonFromToolPanelActionPerformed

    private void addProductButtonFromToolPanelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addProductButtonFromToolPanelActionPerformed
        // TODO add your handling code here:

         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewProduct.getAddNewProduct_Panel());
        DefautFinal_Panel.repaint();
        
    }//GEN-LAST:event_addProductButtonFromToolPanelActionPerformed

    private void addPartyButtonFromToolPanelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addPartyButtonFromToolPanelActionPerformed
        // TODO add your handling code here:

         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewParty.getAddNewParty_Panel());
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_addPartyButtonFromToolPanelActionPerformed

    private void BackButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackButtonActionPerformed
        // TODO add your handling code here:
         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(defautPane_Fetchable);
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_BackButtonActionPerformed

    private void jLabel4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MouseClicked
 DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewDriver.getAddNewDriver_Panel());
        DefautFinal_Panel.repaint();
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jLabel4MouseClicked

    private void jLabel6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseClicked
        // TODO add your handling code here:
        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewProduct.getAddNewProduct_Panel());
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_jLabel6MouseClicked

    private void jLabel7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseClicked
        // TODO add your handling code here:
         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewMachine.getAddNewMachine_Panel());
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_jLabel7MouseClicked

    private void jLabel5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseClicked
        // TODO add your handling code here:
         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(addNewParty.getAddNewParty_Panel());
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_jLabel5MouseClicked

    private void addMachineButtonFromToolPanelMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addMachineButtonFromToolPanelMouseEntered
        // TODO add your handling code here:
     
    }//GEN-LAST:event_addMachineButtonFromToolPanelMouseEntered

    private void addMachineButtonFromToolPanelMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addMachineButtonFromToolPanelMouseExited
        // TODO add your handling code here:
      
    }//GEN-LAST:event_addMachineButtonFromToolPanelMouseExited

    private void addMachineButtonFromToolPanelKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_addMachineButtonFromToolPanelKeyPressed
        // TODO add your handling code here:
      
    }//GEN-LAST:event_addMachineButtonFromToolPanelKeyPressed

    private void addMachineButtonFromToolPanelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addMachineButtonFromToolPanelMouseClicked
        // TODO add your handling code here:
        
    }//GEN-LAST:event_addMachineButtonFromToolPanelMouseClicked

    private void jLabel4MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MouseEntered
        // TODO add your handling code here:

        jLabel4.setIcon(new ImageIcon(path+"\\100 (4).png"));

    }//GEN-LAST:event_jLabel4MouseEntered

    private void jLabel4MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MouseExited
        // TODO add your handling code here:
        
        jLabel4.setIcon(new ImageIcon(path+"\\140 (4).png"));
    }//GEN-LAST:event_jLabel4MouseExited

    private void jLabel5MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseEntered
        // TODO add your handling code here:
        jLabel5.setIcon(new ImageIcon(path+"\\100 (1).png"));
    }//GEN-LAST:event_jLabel5MouseEntered

    private void jLabel5MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseExited
        // TODO add your handling code here:
        jLabel5.setIcon(new ImageIcon(path+"\\140 (1).png"));
    }//GEN-LAST:event_jLabel5MouseExited

    private void jLabel6MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseEntered
        // TODO add your handling code here:
        jLabel6.setIcon(new ImageIcon(path+"\\100 (3).png"));
    }//GEN-LAST:event_jLabel6MouseEntered

    private void jLabel6MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseExited
        // TODO add your handling code here:
        jLabel6.setIcon(new ImageIcon(path+"\\140 (3).png"));
    }//GEN-LAST:event_jLabel6MouseExited

    private void jLabel7MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseEntered
        // TODO add your handling code here:
        jLabel7.setIcon(new ImageIcon(path+"\\100 (2).png"));
    }//GEN-LAST:event_jLabel7MouseEntered

    private void jLabel7MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseExited
        // TODO add your handling code here:
        jLabel7.setIcon(new ImageIcon(path+"\\140 (2).png"));
    }//GEN-LAST:event_jLabel7MouseExited

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Master_Default_Frame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BackButton;
    private javax.swing.JPanel DefautFinal_Panel;
    private javax.swing.JPanel ToolPanel;
    private javax.swing.JButton addDriverButtonFromToolPanel;
    private javax.swing.JButton addMachineButtonFromToolPanel;
    private javax.swing.JButton addPartyButtonFromToolPanel;
    private javax.swing.JButton addProductButtonFromToolPanel;
    private javax.swing.JPanel defaultPanelFromMaster_Default_FrameClass;
    private javax.swing.JPanel defautPane_Fetchable;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JSeparator jSeparator1;
    // End of variables declaration//GEN-END:variables

    public JPanel getDefaultPanelFromMaster_Default_FrameClass() {
        return defaultPanelFromMaster_Default_FrameClass;
    }

}
